.box {
    /* padding: 10px;
    background-color: #887575;
    width: 240px;
    text-align: center; */
    display: inline-block;
    width: 0;
    margin: 35px;
    line-height: 16px;
}

.box::before {
    content: "love你love";
    outline: 2px solid gray;
    /* color: #fff; */
}

.box2 {
    line-height: 16px;
    direction: rtl;
    margin: 35px;
    width: 0;
    display: inline-block;
}

.box2::before {
    content: "我love你";
    outline: 2px solid gray;
    /* color: #fff; */
}

.box>.content {
    display: inline-block;
    text-align: left;
    color: #fff;
}


/* .box>img {
    float: left;
} */


/* .clear {} */

.clear::after {
    content: "";
    display: block;
    clear: both;
}

.inline-table {
    display: inline-table;
    width: 128px;
    margin-left: 10px;
    border: 1px solid #cad5eb;
}

.inline-table>p {
    display: table-cell;
}

table {
    width: 280px;
    margin: 0 auto;
    text-align: left;
}

.nav {
    width: 120px;
    background: red;
}

.nav-a {
    /* width: 100%; */
    display: block;
    margin: 0 10px;
    padding: 9px 10px;
    border-bottom: 1px solid #887575;
    border-top: 1px solid #de3636;
    color: #fff;
}

.nav-a:first-child {
    border-top: 0;
}

.nav-a:last-child {
    border-bottom: 0;
}

img {
    display: inline-block;
    width: 256px;
    height: 192px;
    /* 隐藏Firefox alt文字 */
    color: transparent;
    position: relative;
    overflow: hidden;
}

img:not([src]) {
    /* 隐藏Chrome alt文字以及银色边框 */
    visibility: hidden;
}

img::before {
    /* 淡蓝色占位背景 */
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f3f9;
    visibility: visible;
}

img::after {
    /* 黑色alt信息条 */
    content: attr(alt);
    position: absolute;
    text-align: center;
    left: 0;
    bottom: 0;
    width: 100%;
    line-height: 30px;
    background-color: rgba(0, 0, 0, .5);
    color: white;
    font-size: 14px;
    transform: translateY(100%);
    /* 来点过渡动画效果 */
    transition: transform .3s;
    visibility: visible;
}

img:hover::after {
    transform: translateY(0);
}